package com.sea.finance.service;


import com.sea.finance.entity.ExchangeRate;
import com.sea.finance.entity.Inventory;

import java.text.ParseException;
import java.util.List;

/**
 * @author 陈鸿飞
 */
public interface InventoryService {

    /**
     * 查询指定
     * @param inventory
     * @return
     */
    List<Inventory> findByCnd(Inventory inventory);

    /**
     * 新增
     * @param inventory
     * @return
     */
    int save(Inventory inventory);

    /**
     * 根据月份新增进销存表
     * @param month
     */
    void inventory(String month) throws ParseException, Exception;
    /**
     * 更新payment数量
     * @param inventory
     * @return
     */
    int updateCreditNumberBySkuChannelDate(Inventory inventory);
    /**
     * 更新期末数据
     * @param inventory
     * @return
     */
    int updateEndBySkuChannelDate(Inventory inventory);
    /**
     * 条件查询
     * @param inventory
     * @return
     */
    Inventory findBySkuChannelDate(Inventory inventory);
    /**
     * 获取SKU采购成本
     * @param inventory
     * @return
     */
    List<Inventory> findSkuCost(Inventory inventory);
    /**
     * 查询指定
     * @param inventory
     * @return
     */
    Inventory findBySKuChannel(Inventory inventory);



    Integer usave(Inventory inventory);
}
